package com.bawei.property.api

import com.bawei.network.HttpInterceptorType
import com.bawei.network.HttpManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object PropertyHiltModule {

    @Provides
    @Singleton
    fun getPropertyApiServer(): PropertyApiServer{
        return HttpManager.createApiServer(PropertyApiServer::class.java, HttpInterceptorType.TOKEN)
    }

}